package Example;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-12-08  11:27
 */
class Student {
    private String name;
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void say() {
        System.out.println("name: " + name + " age: " + age);
    }
}
public class TestStudent {
    public static void main(String[] args) {
        Student student = new Student("刘涛",18);
        student.say();
    }
}
